home *** CD-ROM | disk | FTP | other *** search
- From: envbvs@epb2.lbl.gov (Brian V. Smith)
- Newsgroups: comp.sources.x
- Subject: v06i084: xfig 2.0, Patch6, Part04/06
- Message-ID: <134790@sun.Eng.Sun.COM>
- Date: 24 Apr 90 22:28:04 GMT
- Approved: argv@sun.com
-
- Submitted-by: envbvs@epb2.lbl.gov (Brian V. Smith)
- Posting-number: Volume 6, Issue 84
- Archive-name: xfig2/patch6.4
- Patch-To: xfig2: Volume 6, Issues 9-24, 34-36, 50-56
-
- #! /bin/sh
- # This is a shell archive. Remove anything before this line, then unpack
- # it by saving it into a file and typing "sh file". To overwrite existing
- # files, type "sh file -c". You can also feed this as standard input via
- # unshar, or by typing "sh <file", e.g.. If this archive is complete, you
- # will see the following message at the end:
- # "End of archive 4 (of 6)."
- # Contents: FORMAT2.0.diff line.c.diff panel.c.diff psbits.c.diff
- # read1_3.c.diff
- # Wrapped by envbvs@epb2.lbl.gov on Tue Apr 24 11:56:47 1990
- PATH=/bin:/usr/bin:/usr/ucb ; export PATH
- if test -f 'FORMAT2.0.diff' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'FORMAT2.0.diff'\"
- else
- echo shar: Extracting \"'FORMAT2.0.diff'\" \(10098 characters\)
- sed "s/^X//" >'FORMAT2.0.diff' <<'END_OF_FILE'
- X*** FORMAT2.0.old Tue Apr 24 11:48:03 1990
- X--- FORMAT2.0 Thu Apr 12 18:07:41 1990
- X***************
- X*** 0 ****
- X--- 1,286 ----
- X+ The following is the format of fig output for Protocol version 2.0:
- X+
- X+ (1) The very first line is a comment line containing the name and version:
- X+ #FIG 2.0
- X+
- X+ The character # at the first column of a line indicates that the line
- X+ is a comment line which will be ignored.
- X+
- X+ (2) The first non-comment line consists of two numbers :
- X+
- X+ int fig_resolution (pixels/inch)
- X+ int coordinate_system (1 : origin is at the lower left corner
- X+ 2 : Upper left)
- X+
- X+ Fig_resolution is the resolution fig is using for the current file.
- X+ It may not be the same as screen resolution (which can be higher or
- X+ lower). I assume that a pixel is square, therefore this number
- X+ represents drawing resolution in both direction. I've experimented
- X+ with fig automatically changing this number according to the resolution
- X+ of the monitor it is running on (The screen resolution, width and height
- X+ in pixels, not pixel/inch, can be done by doing a ioctl on the /dev/fb).
- X+ I've found that for monitors with higher resolution but same size
- X+ (19" diagonal), I preferred using the pixels for other things than
- X+ having fig occupying most of the screen. Thus I opted for a fixed
- X+ pixel-per-inch number which make fig window smaller on higher resolution
- X+ monitor (than the standard sun monitor). This however may change in
- X+ the future version.
- X+
- X+ (3) The rest of the file contains various objects. An object can be one
- X+ of six classes (or types).
- X+
- X+ i) Ellipse which is a generalization of circle.
- X+ ii) Polyline which includes polygon and box.
- X+ iii) Spline which includes closed/open control/interpolated spline.
- X+ iv) Text.
- X+ v) Arc.
- X+ vi) Compound object which is composed of one or more objects.
- X+
- X+ In the following elaboration on object formats, every value of fig
- X+ output are separated by blank characters or new line ('\n'). The
- X+ value of the not-used parameters will be -1.
- X+
- X+ A number of values are described as unused or not applicable to some
- X+ object even though they are defined for those objects. These value
- X+ will (hopefully) be used in the future version of fig. The intention
- X+ of their uses are the following.
- X+
- X+ Value Usage
- X+ ----- -----
- X+ area_fill The gray color for filling object internals.
- X+ Non-TFX:(gray color; 0=no fill,1=white,21=black)
- X+ TFX: (gray color; 0=no fill,1=black, 5=white)
- X+
- X+ pen This will be a structure defining the shape of
- X+ pen used in drawing objects. It also includes
- X+ the the stipple pattern for line filling.
- X+ The default pen is a circular pen with black
- X+ filling.
- X+
- X+ thickness Every pen has the thickness of one.
- X+ Thickness scales the size of a pen.
- X+
- X+ depth This value adds a half dimension to fig.
- X+ It is useful when we have overlapping filled
- X+ objects and we want one to obliterate another.
- X+ An object can have only one depth (including
- X+ compound object). An object that is in less
- X+ depth can obscure the one with greater depth
- X+ if they overlap.
- X+
- X+ style Three line styles are defined.
- X+
- X+ 0 : SOLID_LINE
- X+ 1 : DASH_LINE
- X+ 2 : DOTTED_LINE
- X+
- X+ style_val For dash style, it is the length of a dash.
- X+ For dotted line it indicates the approximated
- X+ gap of consecutive dots.
- X+
- X+ radius For rounded-corner boxes, this is the radius of
- X+ the corners.
- X+
- X+ (3.1) ELLIPSE
- X+
- X+ First line :
- X+ type name (brief description)
- X+ ---- ---- -------------------
- X+ int object_code (always 1)
- X+ int sub_type (1 : ellipse defined by radiuses
- X+ 2 : ellipse defined by diameters
- X+ 3 : circle defined by radius
- X+ 4 : circle defined by diameter)
- X+ int style (See the end of this section)
- X+ int thickness (pixels, not used)
- X+ int color (not used)
- X+ int depth (not used)
- X+ int pen (not used)
- X+ int area_fill (gray color)
- X+ float style_val (pixels, not used)
- X+ int direction (always 1)
- X+ float angle (radian, the angle of the x-axis)
- X+ int center_x, center_y (pixels)
- X+ int radius_x, radius_y (pixels)
- X+ int start_x, start_y (pixels; the 1st point entered)
- X+ int end_x, end_y (pixels; the last point entered)
- X+
- X+ (3.2) POLYLINE
- X+
- X+ First line :
- X+ type name (brief description)
- X+ ---- ---- -------------------
- X+ int object_code (always 2)
- X+ int sub_type (1 : polyline, 2 : box,
- X+ 3 : polygon, 4 : rounded-corner box)
- X+ int style (See the end of this section)
- X+ int thickness (pixels, not used)
- X+ int color (not used)
- X+ int depth (not used)
- X+ int pen (not used)
- X+ int area_fill * (gray color)
- X+ float style_val (pixels)
- X+ int radius ** (pixels, radius of rounded-corner boxes)
- X+ int forward_arrow (0: off, 1: on)
- X+ int backward_arrow (0: off, 1: on)
- X+
- X+ * Fill only available for box, polygon and rounded-corner box, not polyline.
- X+ ** This component exists only in rounded-corner box object.
- X+
- X+ Forward arrow line : same as ARC object
- X+
- X+ Backward arrow line : same as ARC object
- X+
- X+ Points line :
- X+ type name (brief description)
- X+ ---- ---- -------------------
- X+ int x1, y1 (pixels)
- X+ int x2, y2 (pixels)
- X+ .
- X+ .
- X+ int xn, yn (this will be the same as the 1st
- X+ point for polygon and box)
- X+ int x, y (always 9999, 9999; marks the end of
- X+ point for polygon and box)
- X+
- X+ (3.3) SPLINE
- X+
- X+ First line :
- X+ type name (brief description)
- X+ ---- ---- -------------------
- X+ int object_code (always 3)
- X+ int sub_type (0 : open spline
- X+ 1 : closed spline
- X+ 2 : open interpolated spline
- X+ 3 : closed interpolated spline)
- X+ int style (See the end of this section)
- X+ int thickness (pixels, not used)
- X+ int color (not used)
- X+ int depth (not used)
- X+ int pen (not used)
- X+ int area_fill (gray color)
- X+ float style_val (pixels, not used)
- X+ int forward_arrow (0: off, 1: on)
- X+ int backward_arrow (0: off, 1: on)
- X+
- X+ Forward arrow line : same as ARC object
- X+
- X+ Backward arrow line : same as ARC object
- X+
- X+ Points line : same as POLYLINE object
- X+
- X+ Control points line (absent if sub_type is 1 or 2) :
- X+ Control points of interpolated spline. There are two control
- X+ points for each knots. A section i, of the spline is drawn
- X+ using Bezier cubic with the following four points:
- X+ (x ,y ), (rx ,ry ), (lx , ly ), (x , y ).
- X+ i i i i i+1 i+1 i+1 i+1
- X+ For closed interpolated spline the last pair of control points,
- X+ (lxn,lyn) and (rxn,ryn) (which can be ignored), are the same as
- X+ (lx1,ly1) and (rx1,ry1) respectively.
- X+
- X+ type name (brief description)
- X+ ---- ---- -------------------
- X+ float lx1, ly1 (pixels)
- X+ float rx1, ry1 (pixels)
- X+ float lx2, ly2 (pixels)
- X+ float rx2, ry2 (pixels)
- X+ .
- X+ .
- X+ float lxn, lyn (pixels)
- X+ float rxn, ryn (pixels)
- X+
- X+ (3.4) TEXT
- X+ type name (brief description)
- X+ ---- ---- -------------------
- X+ int object (always 4)
- X+ int sub_type (0 : Left justified
- X+ 1 : Center justified
- X+ 2 : Right justified)
- X+ int font (font number 0-...)
- X+ int font_size (point size)
- X+ int pen (not used)
- X+ int color (not used)
- X+ int depth (not used)
- X+ int angle (radian, not used, the angle of the
- X+ the base line of the string)
- X+ int font_style (not used)
- X+ int height (pixels)
- X+ int length (pixels)
- X+ int x, y (pixels, coordinate of the origin
- X+ of the string. If sub_type = 0, it is
- X+ the lower left corner of the string.
- X+ If sub_type = 1, it is the lower
- X+ center. Otherwise it is the lower
- X+ right corner of the string.)
- X+ char string[] (ascii characters; starts after a blank
- X+ character following the last number and
- X+ ends before the character '\1'. This
- X+ character is not part of the string.
- X+ Note that the string may contain '\n'.)
- X+ (3.5) ARC
- X+
- X+ First line :
- X+ type name (brief description)
- X+ ---- ---- -------------------
- X+ int object_code (always 5)
- X+ int sub_type (always 1)
- X+ int style (See the end of this section)
- X+ int line_thickness (pixels, not used)
- X+ int color (not used)
- X+ int depth (not used)
- X+ int pen (not used)
- X+ int area_fill (gray color)
- X+ float style_val (pixels, not used)
- X+ int direction (0 : clockwise, 1 : counterclockwise)
- X+ int forward_arrow (0: no forward arrow, 1: on)
- X+ int backward_arrow (0: no forward arrow, 1: on)
- X+ float center_x, center_y (center of the arc)
- X+ int x1, y1 (pixels, the 1st point the user entered)
- X+ int x2, y2 (pixels, the 2nd point)
- X+ int x3, y3 (pixels, the last point)
- X+
- X+ Forward arrow line (Optional; absent if forward_arrow is 0) :
- X+ type name (brief description)
- X+ ---- ---- -------------------
- X+ int arrow_type (not used)
- X+ int arrow_style (not used)
- X+ float arrow_thickness (not used)
- X+ float arrow_width (pixels)
- X+ float arrow_height (pixels)
- X+
- X+ Backward arrow line (Optional; absent if backward_arrow is 0) :
- X+ type name (brief description)
- X+ ---- ---- -------------------
- X+ int arrow_type (not used)
- X+ int arrow_style (not used)
- X+ float arrow_thickness (not used)
- X+ float arrow_width (pixels)
- X+ float arrow_height (pixels)
- X+
- X+ (3.6) COMPOUND
- X+
- X+ A line with object code 6 signifies the start of a compound.
- X+ There are four more numbers on this line which indicate the
- X+ upper right corner and the lower left corner of the bounding
- X+ box of this compound. A line with object code -6 signifies
- X+ the end of the compound. Compound may be nested.
- X+
- X+ First line :
- X+ type name (brief description)
- X+ ---- ---- -------------------
- X+ int object_code (always 6)
- X+ int upperright_corner_x (pixels)
- X+ int upperright_corner_y (pixels)
- X+ int lowerleft_corner_x (pixels)
- X+ int lowerleft_corner_y (pixels)
- X+
- X+ Subsequent lines :
- X+ objects
- X+ .
- X+ .
- X+
- X+ Last line :
- X+ -6
- X+
- X+
- END_OF_FILE
- if test 10098 -ne `wc -c <'FORMAT2.0.diff'`; then
- echo shar: \"'FORMAT2.0.diff'\" unpacked with wrong size!
- fi
- # end of 'FORMAT2.0.diff'
- fi
- if test -f 'line.c.diff' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'line.c.diff'\"
- else
- echo shar: Extracting \"'line.c.diff'\" \(9233 characters\)
- sed "s/^X//" >'line.c.diff' <<'END_OF_FILE'
- X*** line.c.old Tue Apr 24 11:48:19 1990
- X--- line.c Mon Apr 16 11:21:22 1990
- X***************
- X*** 104,110 ****
- X
- X draw_elasticline()
- X {
- X! pw_vector(canvas_pixwin, fix_x, fix_y, cur_x, cur_y,
- X INV_PAINT, 1, SOLID_LINE, 0.0);
- X }
- X
- X--- 104,110 ----
- X
- X draw_elasticline()
- X {
- X! pw_vector(canvas_win, fix_x, fix_y, cur_x, cur_y,
- X INV_PAINT, 1, SOLID_LINE, 0.0);
- X }
- X
- X***************
- X*** 123,129 ****
- X CURSOR c;
- X
- X latex_endpoint(fix_x, fix_y, cur_x, cur_y, &x, &y, latexarrow_mode, (magnet_mode)? 5: 1);
- X! pw_vector(canvas_pixwin, fix_x, fix_y, x, y, INV_PAINT,1,SOLID_LINE, 0.0);
- X c = (x == cur_x && y == cur_y)? &null_cursor: &crosshair_cursor;
- X if (c != cur_cursor) {
- X set_temp_cursor(c);
- X--- 123,129 ----
- X CURSOR c;
- X
- X latex_endpoint(fix_x, fix_y, cur_x, cur_y, &x, &y, latexarrow_mode, (magnet_mode)? 5: 1);
- X! pw_vector(canvas_win, fix_x, fix_y, x, y, INV_PAINT,1,SOLID_LINE, 0.0);
- X c = (x == cur_x && y == cur_y)? &null_cursor: &crosshair_cursor;
- X if (c != cur_cursor) {
- X set_temp_cursor(c);
- X***************
- X*** 144,153 ****
- X int x, y;
- X {
- X if (x == cur_x && y == cur_y) return;
- X! pw_vector(canvas_pixwin, fix_x, fix_y, cur_x, cur_y, INV_PAINT,1,SOLID_LINE, 0.0);
- X cur_x = x;
- X! pw_vector(canvas_pixwin, fix_x, fix_y, cur_x, cur_y, INV_PAINT,1,SOLID_LINE, 0.0);
- X! win_setmouseposition(canvas_swfd, cur_x, cur_y);
- X }
- X
- X angle90_elasticline(x, y)
- X--- 144,153 ----
- X int x, y;
- X {
- X if (x == cur_x && y == cur_y) return;
- X! pw_vector(canvas_win, fix_x, fix_y, cur_x, cur_y, INV_PAINT,1,SOLID_LINE, 0.0);
- X cur_x = x;
- X! pw_vector(canvas_win, fix_x, fix_y, cur_x, cur_y, INV_PAINT,1,SOLID_LINE, 0.0);
- X! win_setmouseposition(canvas_win, cur_x, cur_y);
- X }
- X
- X angle90_elasticline(x, y)
- X***************
- X*** 154,163 ****
- X int x, y;
- X {
- X if (x == cur_x && y == cur_y) return;
- X! pw_vector(canvas_pixwin, fix_x, fix_y, cur_x, cur_y, INV_PAINT,1,SOLID_LINE, 0.0);
- X cur_y = y;
- X! pw_vector(canvas_pixwin, fix_x, fix_y, cur_x, cur_y, INV_PAINT,1,SOLID_LINE, 0.0);
- X! win_setmouseposition(canvas_swfd, cur_x, cur_y);
- X }
- X
- X angle45_elasticline(x, y)
- X--- 154,163 ----
- X int x, y;
- X {
- X if (x == cur_x && y == cur_y) return;
- X! pw_vector(canvas_win, fix_x, fix_y, cur_x, cur_y, INV_PAINT,1,SOLID_LINE, 0.0);
- X cur_y = y;
- X! pw_vector(canvas_win, fix_x, fix_y, cur_x, cur_y, INV_PAINT,1,SOLID_LINE, 0.0);
- X! win_setmouseposition(canvas_win, cur_x, cur_y);
- X }
- X
- X angle45_elasticline(x, y)
- X***************
- X*** 164,170 ****
- X int x, y;
- X {
- X if (x == cur_x && y == cur_y) return;
- X! pw_vector(canvas_pixwin, fix_x, fix_y, cur_x, cur_y, INV_PAINT,1,SOLID_LINE, 0.0);
- X if (abs(x - cur_x) < abs(y - cur_y)) {
- X cur_x += cur_y - y;
- X cur_y = y;
- X--- 164,170 ----
- X int x, y;
- X {
- X if (x == cur_x && y == cur_y) return;
- X! pw_vector(canvas_win, fix_x, fix_y, cur_x, cur_y, INV_PAINT,1,SOLID_LINE, 0.0);
- X if (abs(x - cur_x) < abs(y - cur_y)) {
- X cur_x += cur_y - y;
- X cur_y = y;
- X***************
- X*** 173,180 ****
- X cur_y -= x - cur_x;
- X cur_x = x;
- X }
- X! pw_vector(canvas_pixwin, fix_x, fix_y, cur_x, cur_y, INV_PAINT,1,SOLID_LINE, 0.0);
- X! win_setmouseposition(canvas_swfd, cur_x, cur_y);
- X }
- X
- X angle135_elasticline(x, y)
- X--- 173,180 ----
- X cur_y -= x - cur_x;
- X cur_x = x;
- X }
- X! pw_vector(canvas_win, fix_x, fix_y, cur_x, cur_y, INV_PAINT,1,SOLID_LINE, 0.0);
- X! win_setmouseposition(canvas_win, cur_x, cur_y);
- X }
- X
- X angle135_elasticline(x, y)
- X***************
- X*** 181,187 ****
- X int x, y;
- X {
- X if (x == cur_x && y == cur_y) return;
- X! pw_vector(canvas_pixwin, fix_x, fix_y, cur_x, cur_y, INV_PAINT,1,SOLID_LINE, 0.0);
- X if (abs(x - cur_x) < abs(y - cur_y)) {
- X cur_x += y - cur_y;
- X cur_y = y;
- X--- 181,187 ----
- X int x, y;
- X {
- X if (x == cur_x && y == cur_y) return;
- X! pw_vector(canvas_win, fix_x, fix_y, cur_x, cur_y, INV_PAINT,1,SOLID_LINE, 0.0);
- X if (abs(x - cur_x) < abs(y - cur_y)) {
- X cur_x += y - cur_y;
- X cur_y = y;
- X***************
- X*** 190,197 ****
- X cur_y += x - cur_x;
- X cur_x = x;
- X }
- X! pw_vector(canvas_pixwin, fix_x, fix_y, cur_x, cur_y, INV_PAINT,1,SOLID_LINE, 0.0);
- X! win_setmouseposition(canvas_swfd, cur_x, cur_y);
- X }
- X
- X get_direction(x, y)
- X--- 190,197 ----
- X cur_y += x - cur_x;
- X cur_x = x;
- X }
- X! pw_vector(canvas_win, fix_x, fix_y, cur_x, cur_y, INV_PAINT,1,SOLID_LINE, 0.0);
- X! win_setmouseposition(canvas_win, cur_x, cur_y);
- X }
- X
- X get_direction(x, y)
- X***************
- X*** 245,251 ****
- X set_temp_cursor(&null_cursor);
- X cur_cursor = &null_cursor;
- X }
- X! win_setmouseposition(canvas_swfd, cur_x, cur_y);
- X get_intermediatepoint(cur_x, cur_y);
- X }
- X
- X--- 245,251 ----
- X set_temp_cursor(&null_cursor);
- X cur_cursor = &null_cursor;
- X }
- X! win_setmouseposition(canvas_win, cur_x, cur_y);
- X get_intermediatepoint(cur_x, cur_y);
- X }
- X
- X***************
- X*** 273,279 ****
- X set_temp_cursor(&null_cursor);
- X cur_cursor = &null_cursor;
- X }
- X! win_setmouseposition(canvas_swfd, cur_x, cur_y);
- X }
- X create_lineobject(cur_x, cur_y);
- X }
- X--- 273,279 ----
- X set_temp_cursor(&null_cursor);
- X cur_cursor = &null_cursor;
- X }
- X! win_setmouseposition(canvas_win, cur_x, cur_y);
- X }
- X create_lineobject(cur_x, cur_y);
- X }
- X***************
- X*** 320,326 ****
- X line->color = cur_color;
- X line->depth = 0;
- X line->area_fill = 0;
- X! line->pen = NULL;
- X line->points = first_point;
- X line->next = NULL;
- X line->for_arrow = NULL;
- X--- 320,326 ----
- X line->color = cur_color;
- X line->depth = 0;
- X line->area_fill = 0;
- X! line->pen = 0;
- X line->points = first_point;
- X line->next = NULL;
- X line->for_arrow = NULL;
- X***************
- X*** 337,343 ****
- X }
- X }
- X else if (dot) { /* single point */
- X! pw_vector(canvas_pixwin, fix_x, fix_y, cur_x, cur_y, PAINT, 2, SOLID_LINE, 0.0);
- X line->style = SOLID_LINE;
- X }
- X else if (num_point > 1) { /* polyline; draw any arrows */
- X--- 337,343 ----
- X }
- X }
- X else if (dot) { /* single point */
- X! pw_vector(canvas_win, fix_x, fix_y, cur_x, cur_y, PAINT, 2, SOLID_LINE, 0.0);
- X line->style = SOLID_LINE;
- X }
- X else if (num_point > 1) { /* polyline; draw any arrows */
- X***************
- X*** 399,405 ****
- X XPoint *points;
- X GC gc;
- X
- X! if (line->area_fill <= 0)
- X return;
- X
- X if (op == PAINT) /* fill */
- X--- 399,405 ----
- X XPoint *points;
- X GC gc;
- X
- X! if (line->area_fill <= 0 || line->type == T_POLYLINE)
- X return;
- X
- X if (op == PAINT) /* fill */
- X***************
- X*** 426,432 ****
- X points[i].x = pnt->x;
- X points[i].y = pnt->y;
- X }
- X! XFillPolygon(tool_d,canvas_pixwin,gc,points, npts,
- X Complex, CoordModeOrigin);
- X free(points);
- X }
- X--- 426,432 ----
- X points[i].x = pnt->x;
- X points[i].y = pnt->y;
- X }
- X! XFillPolygon(tool_d,canvas_win,gc,points, npts,
- X Complex, CoordModeOrigin);
- X free(points);
- X }
- X***************
- X*** 440,446 ****
- X int radius,diam;
- X
- X point = line->points;
- X! radius = line->pen;
- X
- X xmin = xmax = point->x;
- X ymin = ymax = point->y;
- X--- 440,446 ----
- X int radius,diam;
- X
- X point = line->points;
- X! radius = line->radius;
- X
- X xmin = xmax = point->x;
- X ymin = ymax = point->y;
- X***************
- X*** 459,485 ****
- X
- X diam = 2*radius;
- X /* upper left */
- X! XFillArc(tool_d, canvas_pixwin, gc, xmin, ymin,
- X diam, diam, 90*64, 90*64);
- X /* lower left */
- X! XFillArc(tool_d, canvas_pixwin, gc, xmin, ymax-diam,
- X diam, diam, 180*64, 90*64);
- X /* lower right */
- X! XFillArc(tool_d, canvas_pixwin, gc, xmax-diam, ymax-diam,
- X diam, diam, 270*64, 90*64);
- X /* upper right */
- X! XFillArc(tool_d, canvas_pixwin, gc, xmax-diam, ymin,
- X diam, diam, 0*64, 90*64);
- X /* fill strip on left side between upper and lower arcs */
- X if (ymax-ymin-diam > 0)
- X! XFillRectangle(tool_d, canvas_pixwin, gc, xmin, ymin+radius,
- X radius, ymax-ymin-diam);
- X /* fill middle section */
- X if (xmax-xmin-diam > 0)
- X! XFillRectangle(tool_d, canvas_pixwin, gc, xmin+radius, ymin,
- X xmax-xmin-diam, ymax-ymin);
- X /* fill strip on right side between upper and lower arcs */
- X if (ymax-ymin-diam > 0)
- X! XFillRectangle(tool_d, canvas_pixwin, gc, xmax-radius, ymin+radius,
- X radius, ymax-ymin-diam);
- X }
- X--- 459,485 ----
- X
- X diam = 2*radius;
- X /* upper left */
- X! XFillArc(tool_d, canvas_win, gc, xmin, ymin,
- X diam, diam, 90*64, 90*64);
- X /* lower left */
- X! XFillArc(tool_d, canvas_win, gc, xmin, ymax-diam,
- X diam, diam, 180*64, 90*64);
- X /* lower right */
- X! XFillArc(tool_d, canvas_win, gc, xmax-diam, ymax-diam,
- X diam, diam, 270*64, 90*64);
- X /* upper right */
- X! XFillArc(tool_d, canvas_win, gc, xmax-diam, ymin,
- X diam, diam, 0*64, 90*64);
- X /* fill strip on left side between upper and lower arcs */
- X if (ymax-ymin-diam > 0)
- X! XFillRectangle(tool_d, canvas_win, gc, xmin, ymin+radius,
- X radius, ymax-ymin-diam);
- X /* fill middle section */
- X if (xmax-xmin-diam > 0)
- X! XFillRectangle(tool_d, canvas_win, gc, xmin+radius, ymin,
- X xmax-xmin-diam, ymax-ymin);
- X /* fill strip on right side between upper and lower arcs */
- X if (ymax-ymin-diam > 0)
- X! XFillRectangle(tool_d, canvas_win, gc, xmax-radius, ymin+radius,
- X radius, ymax-ymin-diam);
- X }
- END_OF_FILE
- if test 9233 -ne `wc -c <'line.c.diff'`; then
- echo shar: \"'line.c.diff'\" unpacked with wrong size!
- fi
- # end of 'line.c.diff'
- fi
- if test -f 'panel.c.diff' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'panel.c.diff'\"
- else
- echo shar: Extracting \"'panel.c.diff'\" \(11356 characters\)
- sed "s/^X//" >'panel.c.diff' <<'END_OF_FILE'
- X*** panel.c.old Tue Apr 24 11:48:24 1990
- X--- panel.c Fri Apr 20 14:36:03 1990
- X***************
- X*** 38,43 ****
- X--- 38,46 ----
- X extern char *printer_list[];
- X extern TOOL fontmenu; /* popup menu for printer fonts */
- X extern appresStruct appres;
- X+ extern int font_button; /* "current" font */
- X+ extern int *font_sel; /* pointer to store font selected from popup */
- X+ extern TOOL image_widget; /* which widget to store image of font in */
- X
- X /************** local variables and routines **************/
- X
- X***************
- X*** 112,142 ****
- X { 0, 0, 0, 0, &line_ic, F_POLYLINE, set_command, null_proc, S_ON, },
- X { 0, 0, 0, 0, &polygon_ic, F_POLYGON, set_command, null_proc, S_ON, },
- X { 0, 0, 0, 0, &box_ic, F_BOX, set_command, null_proc, S_ON, },
- X- #ifndef TFX
- X- /* no rounded-corner boxes with TFX */
- X { 0, 0, 0, 0, &arc_box_ic, F_ARC_BOX, set_command, null_proc, S_ON, },
- X- #endif
- X { 0, 0, 0, 0, &text_ic, F_TEXT, set_command, null_proc, S_ON, },
- X { 0, 0, 0, 0, &arc_ic, F_CIRCULAR_ARC, set_command, null_proc, S_ON, },
- X { 0, 0, 0, 0, &turn_ic, F_TURN, set_command, null_proc, S_ON, },
- X- #ifdef TFX /* put arrow before glue */
- X- { 0, 0, 0, 0, &autoarrow_ic, F_AUTOARROW, set_command, null_proc, S_ON, },
- X- #endif
- X { 0, 0, 0, 0, &glue_ic, F_GLUE, set_command, null_proc, S_ON, },
- X { 0, 0, 0, 0, &break_ic, F_BREAK, set_command, null_proc, S_ON, },
- X { 0, 0, 0, 0, &scale_ic, F_SCALE, set_command, null_proc, S_ON, },
- X- #ifndef TFX /* put arrow after glue */
- X { 0, 0, 0, 0, &autoarrow_ic, F_AUTOARROW, set_command, null_proc, S_ON, },
- X- #endif
- X { 0, 0, 0, 0, &addpt_ic, F_ADD_POINT, set_command, null_proc, S_ON, },
- X { 0, 0, 0, 0, &deletept_ic, F_DELETE_POINT, set_command, null_proc, S_ON, },
- X- #ifdef TFX /* put movept before move */
- X- { 0, 0, 0, 0, &movept_ic, F_MOVE_POINT, set_command, null_proc, S_ON, },
- X- #endif
- X { 0, 0, 0, 0, &move_ic, F_MOVE, set_command, null_proc, S_ON, },
- X- #ifndef TFX /* put movept after move */
- X { 0, 0, 0, 0, &movept_ic, F_MOVE_POINT, set_command, null_proc, S_ON, },
- X- #endif
- X { 0, 0, 0, 0, ©_ic, F_COPY, set_command, null_proc, S_ON, },
- X { 0, 0, 0, 0, &remove_ic, F_REMOVE, set_command, null_proc, S_ON, },
- X { 0, 0, 0, 0, &flip_x_ic, F_FLIP_XAXIS, set_command, null_proc, S_ON, },
- X--- 115,132 ----
- X***************
- X*** 143,174 ****
- X { 0, 0, 0, 0, &flip_y_ic, F_FLIP_YAXIS, set_command, null_proc, S_ON, },
- X { 0, 0, 0, 0, &rot90_ic, F_ROTATE90, set_command, null_proc, S_ON, },
- X { 0, 0, 0, 0, &rot270_ic, F_ROTATE270, set_command, null_proc, S_ON, },
- X! #ifndef TFX
- X! /* place holders to align some button groups */
- X! { 0, -1, 0, 0, &blank_ic, F_NOP, null_proc, null_proc, S_MOMENT, },
- X! #endif
- X! { 0, 1, 0, 0, &grid1_ic, F_GRID1, set_grid, set_grid, S_TOG, },
- X! { 0, 1, 0, 0, &grid2_ic, F_GRID2, set_grid, set_grid, S_TOG, },
- X { 1, 2, 0, 0, &unconstraint_ic, F_UNCONSTRAINT, set_geometry, null_proc, S_ON, },
- X { 0, 2, 0, 0, &mounthattan_ic, F_MOUNTHATTAN, set_geometry, null_proc, S_ON, },
- X { 0, 2, 0, 0, &manhattan_ic, F_MANHATTAN, set_geometry, null_proc, S_ON, },
- X { 0, 2, 0, 0, &mountain_ic, F_MOUNTAIN, set_geometry, null_proc, S_ON, },
- X! #ifdef TFX
- X! { 0, 2, 0, 0, &latexline_ic, F_LATEX_LINE, set_geometry, null_proc, S_ON, },
- X! { 0, 2, 0, 0, &latexarrow_ic, F_LATEX_ARROW, set_geometry, null_proc, S_ON, },
- X! #endif
- X! { 1, 3, 0, 0, &solidline_ic, F_SET_SOLID_LINE, set_style, null_proc, S_ON, },
- X! { 0, 3, 0, 0, &dashline_ic, F_SET_DASH_LINE, set_style, null_proc, S_ON, },
- X! { 0, 3, 0, 0, &dottedline_ic, F_SET_DOTTED_LINE, set_style, null_proc, S_ON, },
- X! { 0, 0, 0, 0, &change_style_ic, F_CHANGE_STYLE, set_command, null_proc, S_ON, },
- X! { 0, -1, 0, 0, &backarrow_ic, F_AUTOB_ARROW, mode_on, mode_off, S_TOG, },
- X! { 0, -1, 0, 0, &forarrow_ic, F_AUTOF_ARROW, mode_on, mode_off, S_TOG, },
- X! { 0, 0, 0, 0, &change_thick_ic, F_CHANGE_THICK, set_command, null_proc, S_ON, },
- X! { 1, -1, 0, 0, &magnet_ic, F_MAGNET, mode_on, mode_off, S_TOG, },
- X! { 0, -1, 0, 0, &fill_ic, F_FILL, mode_on, mode_off, S_TOG, },
- X! { 0, -1, 0, 0, &incdec_thick_ic, F_INCDECTHICK, dec_thick, null_proc, S_MOMENT,},
- X! { 0, -1, 0, 0, &incdec_radius_ic, F_INCDECRADIUS, dec_radius, null_proc, S_MOMENT,},
- X! { 0, -1, 0, 0, &fill_color_ic, F_FILLCOLOR, lighten_fill, null_proc, S_MOMENT,},
- X
- X /* place holders to keep a multiple of 3 buttons */
- X /* { 0, -1, 0, 0, &blank_ic, F_NOP, null_proc, null_proc, S_MOMENT, }, */
- X--- 133,158 ----
- X { 0, 0, 0, 0, &flip_y_ic, F_FLIP_YAXIS, set_command, null_proc, S_ON, },
- X { 0, 0, 0, 0, &rot90_ic, F_ROTATE90, set_command, null_proc, S_ON, },
- X { 0, 0, 0, 0, &rot270_ic, F_ROTATE270, set_command, null_proc, S_ON, },
- X! /* now change item Jon N. Tombs */
- X! { 0, 0, 0, 0, &change_ic, F_CHANGE, set_command, null_proc, S_ON, },
- X { 1, 2, 0, 0, &unconstraint_ic, F_UNCONSTRAINT, set_geometry, null_proc, S_ON, },
- X+ { 0, 2, 0, 0, &latexline_ic, F_LATEX_LINE, set_geometry, null_proc, S_ON, },
- X+ { 0, 2, 0, 0, &latexarrow_ic, F_LATEX_ARROW, set_geometry, null_proc, S_ON, },
- X { 0, 2, 0, 0, &mounthattan_ic, F_MOUNTHATTAN, set_geometry, null_proc, S_ON, },
- X { 0, 2, 0, 0, &manhattan_ic, F_MANHATTAN, set_geometry, null_proc, S_ON, },
- X { 0, 2, 0, 0, &mountain_ic, F_MOUNTAIN, set_geometry, null_proc, S_ON, },
- X! { 1, 3, 0, 0, &solidline_ic, F_SET_SOLID_LINE, set_style, null_proc, S_ON, },
- X! { 0, 3, 0, 0, &dashline_ic, F_SET_DASH_LINE, set_style, null_proc, S_ON, },
- X! { 0, 3, 0, 0, &dottedline_ic, F_SET_DOTTED_LINE, set_style, null_proc, S_ON, },
- X! { 0, 1, 0, 0, &grid1_ic, F_GRID1, set_grid, set_grid, S_TOG, },
- X! { 0,-1, 0, 0, &backarrow_ic, F_AUTOB_ARROW, mode_on, mode_off, S_TOG, },
- X! { 0,-1, 0, 0, &forarrow_ic, F_AUTOF_ARROW, mode_on, mode_off, S_TOG, },
- X! { 0, 1, 0, 0, &grid2_ic, F_GRID2, set_grid, set_grid, S_TOG, },
- X! { 1,-1, 0, 0, &magnet_ic, F_MAGNET, mode_on, mode_off, S_TOG, },
- X! { 0,-1, 0, 0, &fill_ic, F_FILL, mode_on, mode_off, S_TOG, },
- X! { 0,-1, 0, 0, &incdec_thick_ic, F_INCDECTHICK, dec_thick, null_proc, S_MOMENT,},
- X! { 0,-1, 0, 0, &incdec_radius_ic, F_INCDECRADIUS, dec_radius, null_proc, S_MOMENT,},
- X! { 0,-1, 0, 0, &fill_color_ic, F_FILLCOLOR, lighten_fill, null_proc, S_MOMENT,},
- X
- X /* place holders to keep a multiple of 3 buttons */
- X /* { 0, -1, 0, 0, &blank_ic, F_NOP, null_proc, null_proc, S_MOMENT, }, */
- X***************
- X*** 193,199 ****
- X { 0, -1, 0, 0, &font_ic, F_FONT, popup_fonts, null_proc, S_MOMENT, },
- X { 0, -1, 0, 0, &size_ic, F_SIZE, dec_size_button, null_proc, S_MOMENT, },
- X { 0, -1, 0, 0, &textL_ic, F_JUST, text_just_button, null_proc, S_MOMENT, },
- X- { 0, 0, 0, 0, &change_text_ic, F_CHANGE_TEXT, set_command, null_proc, S_ON, },
- X { 0, -1, 0, 0, &land_ic, F_LAND, land_button, null_proc, S_MOMENT, },
- X { 0, -1, 0, 0, &undo_ic, F_UNDO, undo_button, null_proc, S_MOMENT, },
- X { 0, -1, 0, 0, &redisp_ic, F_REDISPLAY, redisp_button, null_proc, S_MOMENT, },
- X--- 177,182 ----
- X***************
- X*** 395,401 ****
- X register Screen *s = tool_s;
- X register Pixmap p;
- X Arg tmp_arg[3];
- X! long bg, fg;
- X
- X button_gc = XCreateGC(d, XtWindow(panel_sw), (unsigned long)0, NULL);
- X XtSetArg(tmp_arg[0], XtNbackground, &bg);
- X--- 378,384 ----
- X register Screen *s = tool_s;
- X register Pixmap p;
- X Arg tmp_arg[3];
- X! unsigned long bg, fg;
- X
- X button_gc = XCreateGC(d, XtWindow(panel_sw), (unsigned long)0, NULL);
- X XtSetArg(tmp_arg[0], XtNbackground, &bg);
- X***************
- X*** 496,505 ****
- X }
- X
- X init_switch();
- X! panel_pixwin = panel_swfd = XtWindow(panel_sw);
- X! XDefineCursor(d, panel_swfd, (Cursor)arrow_cursor.bitmap);
- X! panel2_pixwin = panel2_swfd = XtWindow(panel2_sw);
- X! XDefineCursor(d, panel2_swfd, (Cursor)arrow_cursor.bitmap);
- X
- X }
- X
- X--- 479,486 ----
- X }
- X
- X init_switch();
- X! XDefineCursor(d, XtWindow(panel_sw), (Cursor)arrow_cursor.bitmap);
- X! XDefineCursor(d, XtWindow(panel2_sw), (Cursor)arrow_cursor.bitmap);
- X
- X }
- X
- X***************
- X*** 827,851 ****
- X erase_compoundbox();
- X put_msg("ADD arrow head (left button); DELETE arrow head (middle button)");
- X break;
- X! case F_CHANGE_THICK:
- X! change_thick_selected();
- X! show_pointmarker();
- X! erase_compoundbox();
- X! put_msg("CHANGE LINE THICKNESS to current thickness of %d",
- X! line_thickness);
- X! break;
- X! case F_CHANGE_STYLE:
- X! change_style_selected();
- X! show_pointmarker();
- X! erase_compoundbox();
- X! put_msg("CHANGE LINE STYLE to current style");
- X! break;
- X! case F_CHANGE_TEXT:
- X! change_text_selected();
- X! show_pointmarker();
- X! erase_compoundbox();
- X! put_msg("CHANGE TEXT to current font/type/size");
- X! break;
- X }
- X cur_command = sw->value;
- X }
- X--- 808,821 ----
- X erase_compoundbox();
- X put_msg("ADD arrow head (left button); DELETE arrow head (middle button)");
- X break;
- X! case F_CHANGE:
- X! change_item_selected();
- X! show_pointmarker();
- X! show_compoundbox();
- X! put_msg("CHANGE OBJECT");
- X! break;
- X!
- X!
- X }
- X cur_command = sw->value;
- X }
- X***************
- X*** 936,943 ****
- X break;
- X case F_FILL :
- X fill_mode = 1;
- X! put_fmsg("FILL MODE (gray level = %.2f)",
- X! 1.0-(cur_areafill-1.0)/(NUMFILLPATS-1.0));
- X break;
- X }
- X }
- X--- 906,913 ----
- X break;
- X case F_FILL :
- X fill_mode = 1;
- X! put_fmsg("FILL MODE (gray level = %.2lf)",
- X! (double)1.0-(cur_areafill-1.0)/(NUMFILLPATS-1.0));
- X break;
- X }
- X }
- X***************
- X*** 1085,1091 ****
- X /* draw current radius into pixmap */
- X curve(radius_pm, 0, cur_radius, cur_radius, 0, 0, 1, 1,
- X 1, SWITCH_ICON_HEIGHT-2, foreground_color,
- X! 1, SOLID_LINE, 0, 0.0);
- X
- X /* Fool the toolkit by changing the background pixmap to 0
- X then giving it the modified one again. Otherwise, it sees
- X--- 1055,1061 ----
- X /* draw current radius into pixmap */
- X curve(radius_pm, 0, cur_radius, cur_radius, 0, 0, 1, 1,
- X 1, SWITCH_ICON_HEIGHT-2, foreground_color,
- X! 1, SOLID_LINE, 0.0, 0);
- X
- X /* Fool the toolkit by changing the background pixmap to 0
- X then giving it the modified one again. Otherwise, it sees
- X***************
- X*** 1102,1107 ****
- X--- 1072,1078 ----
- X
- X static
- X darken_fill(sw)
- X+ F_switch *sw;
- X {
- X if (cur_areafill < NUMFILLPATS)
- X ++cur_areafill;
- X***************
- X*** 1110,1115 ****
- X--- 1081,1087 ----
- X
- X static
- X lighten_fill(sw)
- X+ F_switch *sw;
- X {
- X if (cur_areafill > 1)
- X --cur_areafill;
- X***************
- X*** 1121,1127 ****
- X /* put fill pixmap in widget background */
- X indicator_panel_args[5].value = ind_fill_pm[cur_areafill-1];
- X XtSetValues(fill_panel, &indicator_panel_args[5], 1);
- X! put_fmsg("FILL GRAY = %.2f", 1.0-(cur_areafill-1.0)/(NUMFILLPATS-1.0));
- X }
- X
- X /* save_n_exit */
- X--- 1093,1100 ----
- X /* put fill pixmap in widget background */
- X indicator_panel_args[5].value = ind_fill_pm[cur_areafill-1];
- X XtSetValues(fill_panel, &indicator_panel_args[5], 1);
- X! put_fmsg("FILL GRAY = %.2lf",
- X! (double)1.0-(cur_areafill-1.0)/(NUMFILLPATS-1.0));
- X }
- X
- X /* save_n_exit */
- X***************
- X*** 1253,1258 ****
- X--- 1226,1233 ----
- X popup_fonts(sw)
- X F_switch *sw;
- X {
- X+ font_sel = &font_button; /* store selected font number in font_button */
- X+ image_widget = psfont; /* and image in this widget */
- X XtPopup(fontmenu,XtGrabNonexclusive);
- X setup_fontmenu_cursor(); /* now define the cursor for the font menu */
- X }
- END_OF_FILE
- if test 11356 -ne `wc -c <'panel.c.diff'`; then
- echo shar: \"'panel.c.diff'\" unpacked with wrong size!
- fi
- # end of 'panel.c.diff'
- fi
- if test -f 'psbits.c.diff' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'psbits.c.diff'\"
- else
- echo shar: Extracting \"'psbits.c.diff'\" \(9464 characters\)
- sed "s/^X//" >'psbits.c.diff' <<'END_OF_FILE'
- X*** psbits.c.old Tue Apr 24 11:48:31 1990
- X--- psbits.c Wed Apr 11 09:52:31 1990
- X***************
- X*** 208,276 ****
- X 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 };
- X! static char AvantGarde_bits[] = {
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0xf8,0x00,0x00,
- X! 0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x08,0x06,0x03,
- X! 0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x40,0x01,0x00,0x00,0x00,0x00,0x08,0x01,
- X! 0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x40,0x01,0x00,0x00,0x00,0x00,0x08,
- X! 0x01,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x02,0x01,0xc1,0x27,0x3d,
- X! 0xbe,0x00,0x00,0x3e,0x69,0xf8,0x04,0x1f,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x02,0x01,0x31,0x38,
- X! 0x43,0x88,0x00,0x80,0xc1,0x19,0x06,0xc7,0x60,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x04,0x82,0x10,
- X! 0x30,0x81,0x88,0x00,0x80,0x80,0x09,0x02,0x46,0x40,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x04,0x82,
- X! 0x08,0x20,0x81,0x88,0x00,0x40,0x00,0x09,0x01,0x24,0x80,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf8,0x0f,
- X! 0x44,0x08,0x20,0x81,0x88,0xf0,0x4f,0x00,0x09,0x01,0xe4,0xff,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,
- X! 0x08,0x44,0x08,0x20,0x81,0x88,0x00,0x48,0x00,0x09,0x01,0x24,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x04,0x10,0x28,0x08,0x20,0x81,0x08,0x01,0x44,0x00,0x09,0x01,
- X! 0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x04,0x10,0x28,0x10,0x30,0x81,0x08,0x01,0x84,0x80,0x09,
- X! 0x02,0x46,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x02,0x20,0x10,0x30,0x38,0x81,0x08,0x06,0x83,0xc1,
- X! 0x09,0x06,0xc7,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x02,0x20,0x10,0xc0,0x27,0x81,0x08,0xf8,0x00,
- X! 0x3e,0x09,0xf8,0x04,0x1f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X! 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 };
- X static char Bookman_Demi_bits[] = {
- X 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X--- 208,276 ----
- X 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 };
- X! static char AvantGarde_Book_bits[] = {
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x01,
- X! 0x00, 0x80, 0x0f, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x82, 0xc1, 0x00, 0x00, 0x00, 0x00,
- X! 0x01, 0x00, 0x80, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x00, 0x01, 0x00, 0x00,
- X! 0x00, 0x01, 0x00, 0x80, 0x20, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x00, 0x01, 0x00,
- X! 0x00, 0x00, 0x01, 0x00, 0x80, 0x20, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x88, 0x40, 0x40, 0xf0, 0x49, 0x8f, 0x2f, 0x00, 0x80,
- X! 0x4f, 0x1a, 0x3e, 0xc1, 0x07, 0x80, 0x20, 0xe0, 0x03, 0x7c, 0x10, 0x04,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x88, 0x40, 0x40, 0x0c, 0xce, 0x10, 0x22, 0x00,
- X! 0x60, 0x70, 0x86, 0xc1, 0x31, 0x18, 0x80, 0x10, 0x18, 0x0c, 0x83, 0x11,
- X! 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x81, 0x20, 0x04, 0x4c, 0x20, 0x22,
- X! 0x00, 0x20, 0x60, 0x82, 0x80, 0x11, 0x10, 0x80, 0x1f, 0x08, 0x08, 0x01,
- X! 0x11, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x81, 0x20, 0x02, 0x48, 0x20,
- X! 0x22, 0x00, 0x10, 0x40, 0x42, 0x00, 0x09, 0x20, 0x80, 0x20, 0x04, 0x90,
- X! 0x00, 0x92, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x03, 0x11, 0x02, 0x48,
- X! 0x20, 0x22, 0xfc, 0x13, 0x40, 0x42, 0x00, 0xf9, 0x3f, 0x9f, 0x40, 0x04,
- X! 0x90, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x02, 0x11, 0x02,
- X! 0x48, 0x20, 0x22, 0x00, 0x12, 0x40, 0x42, 0x00, 0x09, 0x00, 0x80, 0x40,
- X! 0x04, 0x90, 0x00, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x0a,
- X! 0x02, 0x48, 0x20, 0x42, 0x00, 0x11, 0x40, 0x42, 0x00, 0x09, 0x00, 0x80,
- X! 0x40, 0x04, 0x90, 0x00, 0x92, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04,
- X! 0x0a, 0x04, 0x4c, 0x20, 0x42, 0x00, 0x21, 0x60, 0x82, 0x80, 0x11, 0x10,
- X! 0x80, 0x40, 0x08, 0x08, 0x01, 0x11, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00,
- X! 0x08, 0x04, 0x0c, 0x4e, 0x20, 0x82, 0xc1, 0x60, 0x70, 0x82, 0xc1, 0x31,
- X! 0x18, 0x80, 0x20, 0x18, 0x0c, 0x83, 0x11, 0x02, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
- X! 0x00, 0x08, 0x04, 0xf0, 0x49, 0x20, 0x02, 0x3e, 0x80, 0x4f, 0x02, 0x3e,
- X! 0xc1, 0x07, 0x80, 0x1f, 0xe0, 0x03, 0x7c, 0x10, 0x04, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- X! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
- X static char Bookman_Demi_bits[] = {
- X 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- X 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- END_OF_FILE
- if test 9464 -ne `wc -c <'psbits.c.diff'`; then
- echo shar: \"'psbits.c.diff'\" unpacked with wrong size!
- fi
- # end of 'psbits.c.diff'
- fi
- if test -f 'read1_3.c.diff' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'read1_3.c.diff'\"
- else
- echo shar: Extracting \"'read1_3.c.diff'\" \(8779 characters\)
- sed "s/^X//" >'read1_3.c.diff' <<'END_OF_FILE'
- X*** read1_3.c.old Tue Apr 24 11:48:36 1990
- X--- read1_3.c Wed Apr 18 11:53:15 1990
- X***************
- X*** 34,45 ****
- X extern char *sys_errlist[];
- X extern int sys_nerr, errno;
- X
- X! static F_ellipse *read_ellipseobject();
- X! static F_line *read_lineobject();
- X! static F_text *read_textobject();
- X! static F_spline *read_splineobject();
- X! static F_arc *read_arcobject();
- X! static F_compound *read_compoundobject();
- X
- X extern int line_no;
- X extern int num_object;
- X--- 34,45 ----
- X extern char *sys_errlist[];
- X extern int sys_nerr, errno;
- X
- X! static F_ellipse *read_1_3_ellipseobject();
- X! static F_line *read_1_3_lineobject();
- X! static F_text *read_1_3_textobject();
- X! static F_spline *read_1_3_splineobject();
- X! static F_arc *read_1_3_arcobject();
- X! static F_compound *read_1_3_compoundobject();
- X
- X extern int line_no;
- X extern int num_object;
- X***************
- X*** 68,74 ****
- X while (fscanf(fp, "%d", &object) == 1) {
- X switch (object) {
- X case O_POLYLINE :
- X! if ((l = read_lineobject(fp)) == NULL) return(-1);
- X if (ll)
- X ll = (ll->next = l);
- X else
- X--- 68,74 ----
- X while (fscanf(fp, "%d", &object) == 1) {
- X switch (object) {
- X case O_POLYLINE :
- X! if ((l = read_1_3_lineobject(fp)) == NULL) return(-1);
- X if (ll)
- X ll = (ll->next = l);
- X else
- X***************
- X*** 76,82 ****
- X num_object++;
- X break;
- X case O_SPLINE :
- X! if ((s = read_splineobject(fp)) == NULL) return(-1);
- X if (ls)
- X ls = (ls->next = s);
- X else
- X--- 76,82 ----
- X num_object++;
- X break;
- X case O_SPLINE :
- X! if ((s = read_1_3_splineobject(fp)) == NULL) return(-1);
- X if (ls)
- X ls = (ls->next = s);
- X else
- X***************
- X*** 84,90 ****
- X num_object++;
- X break;
- X case O_ELLIPSE :
- X! if ((e = read_ellipseobject(fp)) == NULL) return(-1);
- X if (le)
- X le = (le->next = e);
- X else
- X--- 84,90 ----
- X num_object++;
- X break;
- X case O_ELLIPSE :
- X! if ((e = read_1_3_ellipseobject(fp)) == NULL) return(-1);
- X if (le)
- X le = (le->next = e);
- X else
- X***************
- X*** 92,98 ****
- X num_object++;
- X break;
- X case O_ARC :
- X! if ((a = read_arcobject(fp)) == NULL) return(-1);
- X if (la)
- X la = (la->next = a);
- X else
- X--- 92,98 ----
- X num_object++;
- X break;
- X case O_ARC :
- X! if ((a = read_1_3_arcobject(fp)) == NULL) return(-1);
- X if (la)
- X la = (la->next = a);
- X else
- X***************
- X*** 100,106 ****
- X num_object++;
- X break;
- X case O_TEXT :
- X! if ((t = read_textobject(fp)) == NULL) return(-1);
- X if (lt)
- X lt = (lt->next = t);
- X else
- X--- 100,106 ----
- X num_object++;
- X break;
- X case O_TEXT :
- X! if ((t = read_1_3_textobject(fp)) == NULL) return(-1);
- X if (lt)
- X lt = (lt->next = t);
- X else
- X***************
- X*** 108,114 ****
- X num_object++;
- X break;
- X case O_COMPOUND :
- X! if ((c = read_compoundobject(fp)) == NULL) return(-1);
- X if (lc)
- X lc = (lc->next = c);
- X else
- X--- 108,114 ----
- X num_object++;
- X break;
- X case O_COMPOUND :
- X! if ((c = read_1_3_compoundobject(fp)) == NULL) return(-1);
- X if (lc)
- X lc = (lc->next = c);
- X else
- X***************
- X*** 127,133 ****
- X }
- X
- X static F_arc *
- X! read_arcobject(fp)
- X FILE *fp;
- X {
- X F_arc *a;
- X--- 127,133 ----
- X }
- X
- X static F_arc *
- X! read_1_3_arcobject(fp)
- X FILE *fp;
- X {
- X F_arc *a;
- X***************
- X*** 137,143 ****
- X a->type = T_3_POINTS_ARC;
- X a->color = BLACK;
- X a->depth = 0;
- X! a->pen = NULL;
- X a->for_arrow = NULL;
- X a->back_arrow = NULL;
- X a->next = NULL;
- X--- 137,143 ----
- X a->type = T_3_POINTS_ARC;
- X a->color = BLACK;
- X a->depth = 0;
- X! a->pen = 0;
- X a->for_arrow = NULL;
- X a->back_arrow = NULL;
- X a->next = NULL;
- X***************
- X*** 167,173 ****
- X }
- X
- X static F_compound *
- X! read_compoundobject(fp)
- X FILE *fp;
- X {
- X F_arc *a, *la = NULL;
- X--- 167,173 ----
- X }
- X
- X static F_compound *
- X! read_1_3_compoundobject(fp)
- X FILE *fp;
- X {
- X F_arc *a, *la = NULL;
- X***************
- X*** 195,201 ****
- X while (fscanf(fp, "%d", &object) == 1) {
- X switch (object) {
- X case O_POLYLINE :
- X! if ((l = read_lineobject(fp)) == NULL) {
- X free_line(&l);
- X return(NULL);
- X }
- X--- 195,201 ----
- X while (fscanf(fp, "%d", &object) == 1) {
- X switch (object) {
- X case O_POLYLINE :
- X! if ((l = read_1_3_lineobject(fp)) == NULL) {
- X free_line(&l);
- X return(NULL);
- X }
- X***************
- X*** 205,211 ****
- X ll = com->lines = l;
- X break;
- X case O_SPLINE :
- X! if ((s = read_splineobject(fp)) == NULL) {
- X free_spline(&s);
- X return(NULL);
- X }
- X--- 205,211 ----
- X ll = com->lines = l;
- X break;
- X case O_SPLINE :
- X! if ((s = read_1_3_splineobject(fp)) == NULL) {
- X free_spline(&s);
- X return(NULL);
- X }
- X***************
- X*** 215,221 ****
- X ls = com->splines = s;
- X break;
- X case O_ELLIPSE :
- X! if ((e = read_ellipseobject(fp)) == NULL) {
- X free_ellipse(&e);
- X return(NULL);
- X }
- X--- 215,221 ----
- X ls = com->splines = s;
- X break;
- X case O_ELLIPSE :
- X! if ((e = read_1_3_ellipseobject(fp)) == NULL) {
- X free_ellipse(&e);
- X return(NULL);
- X }
- X***************
- X*** 225,231 ****
- X le = com->ellipses = e;
- X break;
- X case O_ARC :
- X! if ((a = read_arcobject(fp)) == NULL) {
- X free_arc(&a);
- X return(NULL);
- X }
- X--- 225,231 ----
- X le = com->ellipses = e;
- X break;
- X case O_ARC :
- X! if ((a = read_1_3_arcobject(fp)) == NULL) {
- X free_arc(&a);
- X return(NULL);
- X }
- X***************
- X*** 235,241 ****
- X la = com->arcs = a;
- X break;
- X case O_TEXT :
- X! if ((t = read_textobject(fp)) == NULL) {
- X free_text(&t);
- X return(NULL);
- X }
- X--- 235,241 ----
- X la = com->arcs = a;
- X break;
- X case O_TEXT :
- X! if ((t = read_1_3_textobject(fp)) == NULL) {
- X free_text(&t);
- X return(NULL);
- X }
- X***************
- X*** 245,251 ****
- X lt = com->texts = t;
- X break;
- X case O_COMPOUND :
- X! if ((c = read_compoundobject(fp)) == NULL) {
- X free_compound(&c);
- X return(NULL);
- X }
- X--- 245,251 ----
- X lt = com->texts = t;
- X break;
- X case O_COMPOUND :
- X! if ((c = read_1_3_compoundobject(fp)) == NULL) {
- X free_compound(&c);
- X return(NULL);
- X }
- X***************
- X*** 267,273 ****
- X }
- X
- X static F_ellipse *
- X! read_ellipseobject(fp)
- X FILE *fp;
- X {
- X F_ellipse *e;
- X--- 267,273 ----
- X }
- X
- X static F_ellipse *
- X! read_1_3_ellipseobject(fp)
- X FILE *fp;
- X {
- X F_ellipse *e;
- X***************
- X*** 277,283 ****
- X e->color = BLACK;
- X e->angle = 0.0;
- X e->depth = 0;
- X! e->pen = NULL;
- X e->area_fill = NULL;
- X e->next = NULL;
- X n = fscanf(fp," %d %d %d %f %d %d %d %d %d %d %d %d %d\n",
- X--- 277,283 ----
- X e->color = BLACK;
- X e->angle = 0.0;
- X e->depth = 0;
- X! e->pen = 0;
- X e->area_fill = NULL;
- X e->next = NULL;
- X n = fscanf(fp," %d %d %d %f %d %d %d %d %d %d %d %d %d\n",
- X***************
- X*** 304,310 ****
- X }
- X
- X static F_line *
- X! read_lineobject(fp)
- X FILE *fp;
- X {
- X F_line *l;
- X--- 304,310 ----
- X }
- X
- X static F_line *
- X! read_1_3_lineobject(fp)
- X FILE *fp;
- X {
- X F_line *l;
- X***************
- X*** 314,320 ****
- X Line_malloc(l);
- X l->color = BLACK;
- X l->depth = 0;
- X! l->pen = NULL;
- X l->area_fill = NULL;
- X l->for_arrow = NULL;
- X l->back_arrow = NULL;
- X--- 314,320 ----
- X Line_malloc(l);
- X l->color = BLACK;
- X l->depth = 0;
- X! l->pen = 0;
- X l->area_fill = NULL;
- X l->for_arrow = NULL;
- X l->back_arrow = NULL;
- X***************
- X*** 362,368 ****
- X }
- X
- X static F_spline *
- X! read_splineobject(fp)
- X FILE *fp;
- X {
- X F_spline *s;
- X--- 362,368 ----
- X }
- X
- X static F_spline *
- X! read_1_3_splineobject(fp)
- X FILE *fp;
- X {
- X F_spline *s;
- X***************
- X*** 372,378 ****
- X Spline_malloc(s);
- X s->color = BLACK;
- X s->depth = 0;
- X! s->pen = NULL;
- X s->area_fill = NULL;
- X s->for_arrow = NULL;
- X s->back_arrow = NULL;
- X--- 372,378 ----
- X Spline_malloc(s);
- X s->color = BLACK;
- X s->depth = 0;
- X! s->pen = 0;
- X s->area_fill = NULL;
- X s->for_arrow = NULL;
- X s->back_arrow = NULL;
- X***************
- X*** 420,426 ****
- X }
- X
- X static F_text *
- X! read_textobject(fp)
- X FILE *fp;
- X {
- X F_text *t;
- X--- 420,426 ----
- X }
- X
- X static F_text *
- X! read_1_3_textobject(fp)
- X FILE *fp;
- X {
- X F_text *t;
- X***************
- X*** 432,438 ****
- X t->style = PLAIN;
- X t->color = BLACK;
- X t->depth = 0;
- X! t->pen = NULL;
- X t->angle = 0.0;
- X t->next = NULL;
- X n = fscanf(fp," %d %d %d %d %d %d %d %[^\n]", &t->font,
- X--- 432,438 ----
- X t->style = PLAIN;
- X t->color = BLACK;
- X t->depth = 0;
- X! t->pen = 0;
- X t->angle = 0.0;
- X t->next = NULL;
- X n = fscanf(fp," %d %d %d %d %d %d %d %[^\n]", &t->font,
- END_OF_FILE
- if test 8779 -ne `wc -c <'read1_3.c.diff'`; then
- echo shar: \"'read1_3.c.diff'\" unpacked with wrong size!
- fi
- # end of 'read1_3.c.diff'
- fi
- echo shar: End of archive 4 \(of 6\).
- cp /dev/null ark4isdone
- MISSING=""
- for I in 1 2 3 4 5 6 ; do
- if test ! -f ark${I}isdone ; then
- MISSING="${MISSING} ${I}"
- fi
- done
- if test "${MISSING}" = "" ; then
- echo You have unpacked all 6 archives.
- rm -f ark[1-9]isdone
- else
- echo You still need to unpack the following archives:
- echo " " ${MISSING}
- fi
- ## End of shell archive.
- exit 0
-
- dan
- -----------------------------------------------------------
- O'Reilly && Associates
- argv@sun.com / argv@ora.com
- 632 Petaluma Ave, Sebastopol, CA 95472
- 800-338-NUTS, in CA: 800-533-NUTS, FAX 707-829-0104
- Opinions expressed reflect those of the author only.
-